package com.efast.cafe.commponent.statemach.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.efast.cafe.commponent.statemach.bean.StateMachResourceTask;

public interface PortalStateMachResourceTaskDao {
	void insertResourceTask(StateMachResourceTask ResourceTask);

	void updateResourceTask(StateMachResourceTask ResourceTask);

	void deleteResourceTask(StateMachResourceTask ResourceTask);

	void deleteResourceTaskByTaskId(@Param(value = "taskId") Long taskId, @Param(value = "ObjectName") String objName);

	StateMachResourceTask getResourceTaskByIdAndName(@Param(value = "taskId") Long taskId,
			@Param(value = "ObjectName") String ObjectName);

	List<StateMachResourceTask> getResourceTaskListByIdAndName(@Param(value = "taskId") Long taskId,
			@Param(value = "ObjectName") String ObjectName);

	List<StateMachResourceTask> getStateMachResourceTaskListByTaskId(@Param(value = "taskId") Long taskId);
	
}
